package com.xms.security.service.dataauth;

import com.xms.datacore.PrimaryKeyProviderFunction;

import java.util.Collection;
import java.util.List;
import java.util.UUID;

/**
 * <p>
 * IObjectAuthorizationFilter
 * </p>
 *
 * @author migo
 * @since 2021/10/20
 */
public interface IObjectAuthorizationFilter {
    <T> void filter(int typeCode, Collection<T> data, PrimaryKeyProviderFunction<T> primaryKeyProviderFunction);
    boolean valid(UUID objectId, int objectTypeCode, List<UUID> roleId);
}
